package com.yami.shop.sys.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 系统日志
 * @author yami
 */
@Data
@TableName("tz_sys_log")
public class SysLog implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户操作")
    private String operation;

    @Schema(description = "请求方法")
    private String method;

    @Schema(description = "请求参数")
    private String params;

    @Schema(description = "执行时长(毫秒)")
    private Long time;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "创建时间")
    private Date createDate;

}
